-- card: 7018 from stack: in -- bmap block id: 0 -- flags: 0000 -- background id: 2764 -- name: -- part contents for background part 17 ----- text ----- Xround -- part contents for background part 18 ----- text ----- Mike Gleason Jr. -- part contents for background part 19 ----- text ----- XFCN -- part contents for background part 20 ----- text ----- xround(number,decimalplaces [, justify n spaces, spChar]) -- part contents for background part 21 ----- text ----- A function to round real numbers. Unlike, hypercard's built it function, you do not have to round it up to an integer; instead you can just round it to however many places after the decimal point you want. Like the Spaces XFCN, the option is built in to add spaces in front of the number to align columns; Also like Spaces, you can specify the character to use as the space character. -- part contents for background part 23 ----- text ----- put xround(99.878,2,10,".") into msg -->.....99.88 put xround(-341.9,0) into msg -->-342